The Dreamweaver JavaScript API > Selection functions > dom.source.insert()

 

dom.source.insert()

Description

Inserts the specified string into the HTML source code at the specified offset from the beginning of the source file. If the offset is not greater than, or equal to, zero, the insertion fails and the function returns false.

Arguments

offset, string

offset is the offset from the beginning of the file where the string should be inserted.
string is the string to insert.

Returns

true if successful, false if not.